package com.yswwpp.dozer;

import java.util.ArrayList;

import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;

public class Main {

	public static void main(String[] agre) {
		System.out.println("hello world");

		Mapper mapper = new DozerBeanMapper(new ArrayList<String>() {

			private static final long serialVersionUID = 5484003147208345964L;

			{
				add("com/yswwpp/dozer/dozerbeanmapping.xml");
			}

		});
		User user = new User("张三", "123456");
		UserDTO userDTO = mapper.map(user, UserDTO.class);
		System.out.println(userDTO);

	}
}
